package com.tiger.cloud.model.crm;

import java.math.BigDecimal;
import java.sql.Timestamp;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.tiger.cloud.common.mybatis.TigerBaseEntity;

import io.swagger.annotations.ApiModelProperty;
/**
 * crm_user_consume-
 */
public class UserConsume extends TigerBaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 积分账户ID
	 */
	@ApiModelProperty(value = "积分账户ID")
    private Long accountId;
	/**
	 * 用户ID
	 */
	@ApiModelProperty(value = "用户ID")
    private Long userId;
	/**
	 * 0:充值、1:赠送积分, 2:积分消费 3:充值消费
	 */
	@ApiModelProperty(value = "0:充值、1:赠送积分, 2:积分消费 3:充值消费")
    private Integer type;
	/**
	 * 金额
	 */
	@ApiModelProperty(value = "金额")
    private BigDecimal amount;
	/**
	 * 充值、消费来源  1:微信、2:活动赠送、3:积分生成
	 */
	@ApiModelProperty(value = "充值、消费来源  1:微信、2:活动赠送、3:积分生成")
    private Integer source;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
    private Timestamp createTime;
	
	private String remark;
    
    public UserConsume(){
    }
    
    public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getAccountId() {
        return this.accountId;
    }
    
    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }
    public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }
    public BigDecimal getAmount() {
        return this.amount;
    }
    
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    public Integer getSource() {
        return this.source;
    }
    
    public void setSource(Integer source) {
        this.source = source;
    }
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}